package com.qy137.controller;

import com.qy137.entity.Course;
import com.qy137.service.CourseService;
import com.qy137.utils.CommonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stat/course")
public class CourseController {

    @Resource
    private CourseService courseService;

    @PostMapping("/queryAllCourseRanking")
    public CommonResult queryAllCourseRanking(Course course){
        courseService.queryAllCourseRanking(course);
        return null;
    }
}
